<template>
  <h1>a组件</h1>
</template>

<script setup>
import {onBeforeUnmount,onUnmounted} from "vue";

onBeforeUnmount( ()=>{
  console.log('onBeforeUnmount:卸载之前')
} )

onUnmounted( ()=>{
  console.log('onUnmounted:卸载之后')
} )

</script>

<style scoped>

</style>